/**
 * 2017，thor.com，all rights reserved。
 * 
 * Project：		palmmall-core
 * Filename：	PDailySales.java
 * Created：		2017年4月25日
 * Creator：		wolv
 */
package com.thor.palmmall.dao.rpt.sales;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Index;

import com.thor.commons.jpa.entity.PEntity;

/**
 * 每日销售
 * 
 * @author wolv
 *
 */
@Entity
@Table(name = "PMDailySales")
@org.hibernate.annotations.Table(appliesTo = "PMDailySales", indexes = {
    @Index(name = "idx_PMDailySales_1", columnNames = {
        "fdate"})})
public class PDailySales extends PEntity {
  private static final long serialVersionUID = -3885558695602801866L;

  private Date date;
  private String shopId;
  private String shop;
  private String floor;
  private String storeId;
  private String store;
  private String bizType;
  private String cooperationType;
  private BigDecimal amount;
  private BigDecimal quantity;
  private boolean isMainShop;
  private BigDecimal area;

  /**
   * 销售日期
   * 
   * @return
   */
  @Column(name = "fdate", nullable = true)
  public Date getDate() {
    return date;
  }

  public void setDate(Date date) {
    this.date = date;
  }

  /**
   * 销售发生店铺ID
   * 
   * @return
   */
  @Column(name = "shopId", nullable = true, length = 38)
  public String getShopId() {
    return shopId;
  }

  public void setShopId(String shopId) {
    this.shopId = shopId;
  }

  /**
   * 销售发生店铺
   * 
   * @return
   */
  @Column(name = "shop", nullable = true, length = 128)
  public String getShop() {
    return shop;
  }

  public void setShop(String shop) {
    this.shop = shop;
  }

  /**
   * 销售发生楼层
   * 
   * @return
   */
  @Column(name = "floor", nullable = true, length = 128)
  public String getFloor() {
    return floor;
  }

  public void setFloor(String floor) {
    this.floor = floor;
  }

  /**
   * 销售发生门店ID
   * 
   * @return
   */
  @Column(name = "storeId", nullable = true, length = 38)
  public String getStoreId() {
    return storeId;
  }

  public void setStoreId(String storeId) {
    this.storeId = storeId;
  }

  /**
   * 销售发生门店
   * 
   * @return
   */
  @Column(name = "store", nullable = true, length = 128)
  public String getStore() {
    return store;
  }

  public void setStore(String store) {
    this.store = store;
  }

  /**
   * 销售所属业态
   * 
   * @return
   */
  @Column(name = "bizType", nullable = true, length = 128)
  public String getBizType() {
    return bizType;
  }

  public void setBizType(String bizType) {
    this.bizType = bizType;
  }

  /**
   * 店铺合作类型
   * 
   * @return
   */
  @Column(name = "cooperationType", nullable = true, length = 128)
  public String getCooperationType() {
    return cooperationType;
  }

  public void setCooperationType(String cooperationType) {
    this.cooperationType = cooperationType;
  }

  /**
   * 总销售金额
   * 
   * @return
   */
  @Column(name = "amount", nullable = true, precision = 19, scale = 4)
  public BigDecimal getAmount() {
    return amount;
  }

  public void setAmount(BigDecimal amount) {
    this.amount = amount;
  }

  /**
   * 总销售笔数
   * 
   * @return
   */
  @Column(name = "quantity", nullable = true, precision = 19, scale = 4)
  public BigDecimal getQuantity() {
    return quantity;
  }

  public void setQuantity(BigDecimal quantity) {
    this.quantity = quantity;
  }

  /**
   * 是否主力店
   * 
   * @return
   */
  @Column(name = "isMainShop", nullable = true)
  public boolean isMainShop() {
    return isMainShop;
  }

  public void setMainShop(boolean isMainShop) {
    this.isMainShop = isMainShop;
  }

  /**
   * 面积
   * 
   * @return
   */
  @Column(name = "area", nullable = true, precision = 19, scale = 4)
  public BigDecimal getArea() {
    return area;
  }

  public void setArea(BigDecimal area) {
    this.area = area;
  }
}
